/** *
 * 数据用于本地开发查看接口数据
 * 源文件涉及到的接口返回数据
 */
export const projectInfo = {
  access_level: '40',
  archived: false,
  builds_enabled: false,
  checkemail: false,
  created_at: '2019-07-03T18:57:25+08:00',
  creator_id: 129866,
  default_branch: 'master',
  description: '123',
  http_url_to_repo: 'http://gitlab-test.alibaba-inc.com//demo_uf123/213.git',
  id: 16638,
  is_review: false,
  issues_enabled: false,
  last_activity_at: '2019-07-04T13:52:04+08:00',
  merge_requests_enabled: true,
  name: '213',
  name_with_namespace: 'demo_uf123 / 213',
  namespace: {
    created_at: '2019-07-01T15:41:55+08:00',
    description: '12321321313',
    id: 147005,
    name: 'demo_uf123',
    owner_id: 129866,
    path: 'demo_uf123',
    public: false,
    updated_at: '2019-07-01T15:41:55+08:00',
    visibility_level: '0',
  },
  notification_level: '3',
  owner: null,
  path: '213',
  path_with_namespace: 'demo_uf123/213',
  permissions: {
    group_access: { access_level: '50', notification_level: '3' },
    project_access: { access_level: '40', notification_level: '3' },
  },
  public: false,
  shared_runners_enabled: true,
  snippets_enabled: true,
  ssh_url_to_repo: 'git@gitlab-test.alibaba-inc.com:demo_uf123/213.git',
  tag_list: [],
  visibility_level: '0',
  web_url: 'http://daily-code.aone.alibaba.net/demo_uf123/213',
  wiki_enabled: true,
};

export const statisticInfo = {
  branchCount: 1,
  commitCount: 1,
  forkedCount: 0,
  repoSize: 0.15,
  stared: false,
  staredCount: 0,
  tagCount: 0,
};

export const tree = [
  {
    id: 'f66d8fc28f4c23b6a2162939ec4f6d6239286aad',
    mode: '100644',
    name: 'name.txt',
    path: 'src/name.txt',
    type: 'blob',
  },
];

export const branches = [
  {
    commit: {
      author_email: 'wb-wts573428@alibaba.net',
      author_name: 'wb-wts573428',
      authored_date: '2019-07-04T13:52:02+08:00',
      committed_date: '2019-07-04T13:52:02+08:00',
      committer_email: 'wb-wts573428@alibaba.net',
      committer_name: 'wb-wts573428',
      created_at: '2019-07-04T13:52:02+08:00',
      id: '72b952640eb1bda3d00c4a05d0b1a6f37265d845',
      message: 'Add new file',
      parent_ids: [],
      short_id: '72b95264',
      status: 'not_found',
      title: 'Add new file',
      user: null,
    },
    name: 'master',
    protected: true,
  },
];

export const tags = [];

export const lastCommit = {
  author_email: 'wb-wts573428@alibaba.net',
  author_name: 'wb-wts573428',
  authored_date: '2019-07-08T11:15:12+08:00',
  committed_date: '2019-07-08T11:15:12+08:00',
  committer_email: 'wb-wts573428@alibaba.net',
  committer_name: 'wb-wts573428',
  created_at: '2019-07-08T11:15:12+08:00',
  id: 'bf45afd6756d2c9619adf10b5be9282f65db1980',
  message: 'Update name.txt',
  parent_ids: ['3888275bcb627a8bdf3015f7027c96ef6dd8488e'],
  short_id: 'bf45afd6',
  status: 'not_found',
  title: 'Update name.txt',
  user: {
    avatar_url: 'https://work.alibaba-inc.com/photo/WB573428.jpg',
    email: 'wb-wts573428@alibaba.net',
    extern_uid: 'WB573428',
    id: 129866,
    name: '汪唐生',
    state: 'active',
    username: 'wb-wts573428',
    web_url: '',
  },
};
export const lastCommit1 = {
  author_email: 'bowei.jbw@alibaba-inc.com',
  author_name: 'bowei.jbw',
  authored_date: '2019-07-04T20:14:24+08:00',
  committed_date: '2019-07-04T20:14:24+08:00',
  committer_email: 'bowei.jbw@alibaba-inc.com',
  committer_name: 'bowei.jbw',
  created_at: '2019-07-04T20:14:24+08:00',
  id: '806bbc6b8ca9d071fd11767c40b9248b8a118048',
  message:
    'Merge branch feat/dashboardCodeReview into master\nTitle: fix: 表单对应Nav项\nLink: https://code.aone.alibaba-inc.com/ais-fed/code-assets/codereview/1529302',
  parent_ids: [
    '66556683180a6fe03eb02f38be13058f122954ff',
    '46fb2f81ec6d180a18e8e327dd851be22eb9fc00',
  ],
  short_id: '806bbc6b',
  status: 'not_found',
  title: 'Merge branch feat/dashboardCodeReview into master',
  user: {
    avatar_url:
      'https://cn-hangzhou.oss-cdn.aliyun-inc.com/git/uploads/user/avatar/20461/avatar.jpg',
    email: 'bowei.jbw@alibaba-inc.com',
    extern_uid: '83949',
    id: 20461,
    name: '萨波',
    state: 'active',
    username: 'bowei.jbw',
    web_url: '',
  },
};

export const general_info = { size: 46, type: 'TEXT' };

export const childrenTree = [
  {
    id: '90765f984938f863a9e6ac36ac9ebb8c65fc28a2',
    mode: '040000',
    name: 'api',
    path: 'src/api',
    type: 'tree',
  },
  {
    id: 'fa6aa9ce7854f0849d93ef93cb58d05d8e3199a7',
    mode: '040000',
    name: 'atComponents',
    path: 'src/atComponents',
    type: 'tree',
  },
  {
    id: 'f6776245c7a24c4feb45419677e47be2536e23bd',
    mode: '040000',
    name: 'components',
    path: 'src/components',
    type: 'tree',
  },
  {
    id: 'd9c5b116d1843a0bed01b775220b45774fe2502d',
    mode: '040000',
    name: 'pages',
    path: 'src/pages',
    type: 'tree',
  },
  {
    id: '42fd73cda7541428f53cf5cb9f79d498cbb60f21',
    mode: '040000',
    name: 'utils',
    path: 'src/utils',
    type: 'tree',
  },
];

export const blob =
  '- [日常环境](http://daily-code2.aone.alibaba.net/?organizationId=5cc11e4714102f208c0d5973)';

export const filterTreeData = [
  {
    id: '21e91a44ebcd573ff1de2070f932b053a20505f3',
    mode: '100644',
    name: 'README.md',
    path: '/README.md',
    type: 'blob',
  },
  {
    id: 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391',
    mode: '100644',
    name: '.gitkeep',
    path: '/src/api/.gitkeep',
    type: 'blob',
  },
  {
    id: '18af4c981b0c0e833f31d071f8bb56abbd6bfb58',
    mode: '100644',
    name: 'axios.js',
    path: '/src/api/axios.js',
    type: 'blob',
  },
  {
    id: '224b60db31f1f8b5dcb385e25ee6abc1faf4d7fb',
    mode: '100644',
    name: 'name.txt',
    path: '/src/name.txt',
    type: 'blob',
  },
];
